Release 10.1A: OpenEdge Reporting:
Query/Results Administration and Development


Output solutions in Results

By default, Results allows the user to view query output on screen using the Print Preview option and to direct output to the default system printer, a file, or the system clipboard using the Print menu options. You can develop your own output solutions and integrate them as features in Results. Several sample output feature procedures located in the aderes product directory provide examples for your own output solutions. Table 3–12 describes the sample output feature procedures.

Table 3–12: Sample output feature procedures 
Output
procedure
Description
Syntax of required input parameter string
u-cprint.p  
Sends the output of the current query to a specified printer with control characters using the OUTPUT TO and PUT CONTROL statements.
printer [, control ]..., where
  • printer is the operating system name of a printer.
  • control is an integer representing the ASCII character value of a printer control character.
u-thru.p  
Sends the output of the current query to a specified printer using the OUTPUT THROUGH statement. This procedure is designed exclusively for use on character-mode systems.
printer, where printer is the operating system name of a spooled print device.
u-to.p  
Sends the output of the current query to a specified printer using the OUTPUT TO statement.
printer, where printer is the name of a printer.
u-pprog.p  
Generates a temporary procedure file for the current query, then runs a specified Progress 4GLprocedure with the generated procedure as an argument.
procedure, where procedure is the name of a Progress procedure.
u-pview.p  
Sends the output of the current query to a temporary text file, then runs a specified Progress procedure with the temporary text file as an argument.
procedure, where procedure is the name of a Progress procedure.

Note: You cannot use these sample output procedures to direct output for queries in the browse and form views.

To add a sample output procedure to Results as a feature and menu option:

  1. Choose Query Customize Feature to access the Feature Editor.
  2. Define the feature, then choose Add. For example, the following list provides information that defines a feature that uses the u-cprint.p procedure to direct query output and printer control characters to a specified printer:
    • Name — PrintCompressed
    • Program /usr/dlc/gui/aderes/u–cprint.p
    • Argument lpr,15
    • Label — To &lpr compressed
  3. Choose Query Customize Menu Layout to access the Menu Editor.
  4. Add the new feature to the Query Print menu.

For more information about output routing solutions, see the OpenEdge Development: Progress 4GL Handbook .


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095